package com.liuyu.common.framework.security.oauth;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.cloud.context.config.annotation.RefreshScope;

import java.util.List;
import java.util.Map;

/**
 * @ClassName OauthProperties
 * @Description: oauth 属性对象。
 * @Author: liuyu
 * @Date: Created in 2020/4/16 20:50
 * @Version: 1
 * @Modified By:
 */
@ConfigurationProperties(prefix = "power.oauth2")
@Data
@RefreshScope
public class OauthProperties {
    /**
     * 认证服务器换区token地址。
     */
    private String oauthTokenUrl = "http://56.1.112.110:8080/oauth2/oauth/token";
    private boolean autoAdaptiveRedirectUri = false;
    private Map<String, String> keyPairMap;
    private Map<String, String> appRedirectUrl;
    private Map<String, String> appRedirectServletPath;
    private Map<String, List<String>> appLastRedirectUrl;
}
